package com.ruubypay.miss.miniotest.util;

import com.ruubypay.miss.miniotest.dto.UserDTO2;
import com.ruubypay.miss.miniotest.pojo.User;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @author fj
 * @date 2025/2/14 15:52
 */
@Mapper
public interface MapStructUtil {
    MapStructUtil INSTANCE = Mappers.getMapper(MapStructUtil.class);
    @Mapping(source = "name",target = "userName")
    UserDTO2 toUserDTO(User user);
}
